home *** CD-ROM | disk | FTP | other *** search
/ Inside Multimedia 1994 April / Inside Multimedia CD-ROM (April 1994).iso / prg / gs / gssource.exe / TURBOC.MAK < prev    next >
Encoding:
Text File  |  1992-08-24  |  6.3 KB  |  210 lines

  1. #    Copyright (C) 1989, 1992 Aladdin Enterprises.  All rights reserved.
  2. #    Distributed by Free Software Foundation, Inc.
  3. #
  4. # This file is part of Ghostscript.
  5. #
  6. # Ghostscript is distributed in the hope that it will be useful, but
  7. # WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
  8. # to anyone for the consequences of using it or for whether it serves any
  9. # particular purpose or works at all, unless he says so in writing.  Refer
  10. # to the Ghostscript General Public License for full details.
  11. #
  12. # Everyone is granted permission to copy, modify and redistribute
  13. # Ghostscript, but only under the conditions described in the Ghostscript
  14. # General Public License.  A copy of this license is supposed to have been
  15. # given to you along with Ghostscript so you can know your rights and
  16. # responsibilities.  It should be in a file named COPYING.  Among other
  17. # things, the copyright notice and this notice must be preserved on all
  18. # copies.
  19.  
  20. # makefile for Ghostscript, MS-DOS/Turbo C platform.
  21.  
  22. # ------------------------------- Options ------------------------------- #
  23.  
  24. ###### This section is the only part of the file you should need to edit.
  25.  
  26. # ------ Generic options ------ #
  27.  
  28. # Define the default directory/ies for the runtime
  29. # initialization and font files.  Separate multiple directories with \;.
  30. # Use \\ or / to indicate directories, not a single \.
  31.  
  32. GS_LIB_DEFAULT=c:/gs\;c:/gs/fonts
  33.  
  34. # Define the name of the Ghostscript initialization file.
  35. # (There is no reason to change this.)
  36.  
  37. GS_INIT=gs_init.ps
  38.  
  39. # Choose generic configuration options.
  40.  
  41. # Setting DEBUG=1 includes debugging features (-Z switch) in the code.
  42. # Code runs substantially slower even if no debugging switches are set,
  43. # and also takes about another 25K of memory.
  44.  
  45. DEBUG=0
  46.  
  47. # Setting NOPRIVATE=1 makes private (static) procedures and variables public,
  48. # so they are visible to the debugger and profiler.
  49. # No execution time or space penalty, just larger .OBJ and .EXE files.
  50.  
  51. NOPRIVATE=0
  52.  
  53. # ------ Platform-specific options ------ #
  54.  
  55. # If you don't have an assembler, set USE_ASM=0.  Otherwise, set USE_ASM=1,
  56. # and set ASM to the name of the assembler you are using.  This can be
  57. # a full path name if you want.  Normally it will be masm or tasm.
  58.  
  59. USE_ASM=1
  60. ASM=masm
  61.  
  62. # Define the drive and directory for the Turbo C files.
  63. # COMP is the compiler name (always tcc).
  64. # COMPDIR contains the compiler and linker (normally \tc).
  65. # BGIDIR contains the BGI files (normally /tc).
  66. # INCDIR contains the include files (normally \tc\include).
  67. # LIBDIR contains the library files (normally \tc\lib).
  68. # Note that these prefixes are always followed by a \,
  69. #   so if you want to use the current directory, use an explicit '.'.
  70.  
  71. COMP=tcc
  72. COMPDIR=c:\tc
  73. # For BGIDIR, use / to indicate directories, not \.
  74. BGIDIR=c:/tc
  75. INCDIR=c:\tc\include
  76. LIBDIR=c:\tc\lib
  77.  
  78. # Choose platform-specific options.
  79.  
  80. # Define the processor (CPU) type.  Options are 86, 186, 286, 386, or 486.
  81. # (The 8086 and 8088 both correspond to processor type 86.)
  82. # 286 and up do not use protected mode.  Higher numbers produce
  83. # code that may be significantly smaller and faster, but the executable
  84. # will bail out with an error message on lower-numbered processor types.
  85.  
  86. CPU_TYPE=86
  87.  
  88. # Define the math coprocessor (FPU) type.  Options are 0, 87, 287, or 387.
  89. # If the CPU type is 486, the FPU type is irrelevant, since the 80486
  90. # CPU includes the equivalent of an 80387 on-chip.
  91. # A non-zero option means that the executable will only run if a FPU
  92. # of that type (or higher) is available: this is NOT currently checked
  93. # at runtime.
  94. #   Code is significantly faster.
  95.  
  96. FPU_TYPE=0
  97.  
  98. # ---------------------------- End of options ---------------------------- #
  99.  
  100. # Define the platform name.
  101.  
  102. PLATFORM=tbc_
  103.  
  104. # Define the name of the makefile -- used in dependencies.
  105.  
  106. MAKEFILE=turboc.mak
  107.  
  108. # Define the ANSI-to-K&R dependency.  (Turbo C accepts ANSI syntax.)
  109.  
  110. AK=
  111.  
  112. # Define the compilation flags for an 80286.
  113.  
  114. F286=-1
  115.  
  116. !include "tccommon.mak"
  117.  
  118. # Define the compilation flags.
  119.  
  120. !if $(NOPRIVATE)
  121. CP=-DNOPRIVATE
  122. !else
  123. CP=
  124. !endif
  125.  
  126. !if $(DEBUG) | $(TDEBUG)
  127. CS=-N
  128. !else
  129. CS=
  130. !endif
  131.  
  132. !if $(DEBUG)
  133. CD=-DDEBUG
  134. !else
  135. CD=
  136. !endif
  137.  
  138. GENOPT=$(CP) $(CS) $(CD)
  139.  
  140. CCFLAGS=$(GENOPT) $(PLATOPT) $(FPFLAGS) -m$(MM)
  141. CC=$(COMPDIR)\$(COMP) -d -r -y -G -I$(INCDIR)
  142. CCC=$(CC) -a $(CCFLAGS) -O -c
  143. CCD=$(CCC)
  144. CC0=$(COMPDIR)\$(COMP) -m$(MM) -I$(INCDIR) -c
  145. CCINT=$(CC) -a $(CCFLAGS) -c
  146.  
  147. .c.obj:
  148.     $(CCC) $<
  149.  
  150. .c.i:
  151.     $(COMPDIR)\cpp -I$(INCDIR) -a $(CCFLAGS) -P- $<
  152.  
  153. # ------ Devices and features ------ #
  154.  
  155. # Choose the language feature(s) to include.  See gs.mak for details.
  156. # Note that because Turbo C doesn't use overlays,
  157. # we don't include any optional features.
  158.  
  159. FEATURE_DEVS=
  160.  
  161. # Choose the device(s) to include.  See devs.mak for details.
  162. # Note that because Turbo C doesn't use overlays,
  163. # we only include a limited set of device drivers.
  164.  
  165. DEVICE_DEVS=vga.dev ega.dev epson.dev bj10e.dev
  166. !include "gs.mak"
  167. !include "devs.mak"
  168.  
  169. # -------------------------------- Library -------------------------------- #
  170.  
  171. # The Turbo/Borland C(++) platform
  172.  
  173. tbc__=gp_itbc.$(OBJ) gp_dosfb.$(OBJ) gp_msdos.$(OBJ)
  174. tbc_.dev: $(tbc__)
  175.     $(SHP)gssetmod tbc_ $(tbc__)
  176.  
  177. # We have to compile gp_itbc without -1, because it includes a run-time
  178. # check to make sure we are running on the right kind of processor.
  179. gp_itbc.$(OBJ): gp_itbc.c $(string__h) $(gx_h) $(gp_h) $(MAKEFILE) makefile
  180.     $(CC) -a -m$(MM) $(GENOPT) -DCPU_TYPE=$(CPU_TYPE) -c gp_itbc.c
  181.  
  182. gp_dosfb.$(OBJ): gp_dosfb.c $(memory__h) $(gx_h) $(gp_h) $(gserrors_h) $(gxdevice_h)
  183.  
  184. gp_msdos.$(OBJ): gp_msdos.c $(dos__h) $(string__h) $(gx_h) $(gp_h)
  185.  
  186. # ----------------------------- Main program ------------------------------ #
  187.  
  188. BEGINFILES=
  189.  
  190. iutilasm.$(OBJ): iutilasm.asm
  191.  
  192. # Get around the fact that the DOS shell has a rather small limit on
  193. # the length of a command line.  (sigh)
  194.  
  195. LIBCTR=libc$(MM).tr
  196.  
  197. $(LIBCTR): $(MAKEFILE) makefile echogs.exe
  198.     echogs -w $(LIBCTR) $(LIBDIR)\$(FPLIB)+
  199.     echogs -a $(LIBCTR) $(LIBDIR)\math$(MM) $(LIBDIR)\c$(MM)
  200.  
  201. LIBDOS=$(LIB) obj.tr
  202.  
  203. # Interpreter main program
  204.  
  205. GS_ALL=gs.$(OBJ) $(INT) $(INTASM) gsmain.$(OBJ)\
  206.   $(LIBDOS) $(LIBCTR) obj.tr lib.tr
  207.  
  208. gs.exe: $(GS_ALL)
  209.     tlink /m /l $(LIBDIR)\c0$(MM) @obj.tr $(INTASM) @gs.tr ,gs,gs,@lib.tr @$(LIBCTR)
  210.